import request from '@/utils/request'

// 获取网关分页列表
export function getgatewayPageApi(params: any) {
    return request({
        url: '/ems/gateway/selectPage',
        method: 'get',
        params
    })
}
// 获取网关列表
export function getgatewayListApi(params: any) {
    return request({
        url: '/ems/gateway/list',
        method: 'get',
        params
    })
}
// 新增网关列表
export function addgatewayApi(data: any) {
    return request({
        url: '/ems/gateway/add',
        method: 'post',
        data
    })
}
// 更新网关列表
export function updategatewayApi(data: any) {
    return request({
        url: '/ems/gateway/update',
        method: 'put',
        data
    })
}
// 删除网关列表
export function delgatewayApi(id: any) {
    return request({
        url: `/ems/gateway/del/${id}`,
        method: 'delete',
    })
}
